package com.edu.study.base.stuQuestionLibrary.mapper;


import com.edu.study.base.stuQuestionLibrary.domain.StuQuestionLibraryRy;

import java.util.List;

/**
 * stuQuestionLibraryMapper接口
 *
 * @author jjt
 * @date 2021-02-27
 */
public interface StuQuestionLibraryRyMapper
{
    /**
     * 查询stuQuestionLibrary
     *
     * @param id stuQuestionLibraryID
     * @return stuQuestionLibrary
     */
    public StuQuestionLibraryRy selectStuQuestionLibraryRyById(Long id);


    public StuQuestionLibraryRy selectStuQuestionLibraryRyInfoById(Long id);

    /**
     * 查询stuQuestionLibrary列表
     *
     * @param stuQuestionLibraryRy stuQuestionLibrary
     * @return stuQuestionLibrary集合
     */
    public List<StuQuestionLibraryRy> selectStuQuestionLibraryRyList(StuQuestionLibraryRy stuQuestionLibraryRy);

    /**
     * 查询课文资源
     * @param stuQuestionLibraryRy
     * @return
     */
    public List<StuQuestionLibraryRy> selectStuCourseTextList(StuQuestionLibraryRy stuQuestionLibraryRy);

    /**
     * 查询阶梯下课程的音频
     * @param stuQuestionLibraryRy
     * @return
     */
    public List<StuQuestionLibraryRy> selectCourseAudioList(StuQuestionLibraryRy stuQuestionLibraryRy);

    /**
     * 查询课程下的资源内容
     * @param stuQuestionLibraryRy
     * @return
     */
    public List<StuQuestionLibraryRy> selectStuCourseContentList(StuQuestionLibraryRy stuQuestionLibraryRy);

    /**
     * 查询课后练习习题
     * @param ids
     * @return
     */
    public List<StuQuestionLibraryRy> selectCourseExercisesContentByIds(List<String> ids);

    /**
     * 新增stuQuestionLibrary
     *
     * @param stuQuestionLibraryRy stuQuestionLibrary
     * @return 结果
     */
    public int insertStuQuestionLibraryRy(StuQuestionLibraryRy stuQuestionLibraryRy);

    /**
     * 修改stuQuestionLibrary
     *
     * @param stuQuestionLibraryRy stuQuestionLibrary
     * @return 结果
     */
    public int updateStuQuestionLibraryRy(StuQuestionLibraryRy stuQuestionLibraryRy);

    /**
     * 删除stuQuestionLibrary
     *
     * @param id stuQuestionLibraryID
     * @return 结果
     */
    public int deleteStuQuestionLibraryRyById(String id);

    /**
     * 批量删除stuQuestionLibrary
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteStuQuestionLibraryRyByIds(String[] ids);

    List<StuQuestionLibraryRy> getPicturebookPageList(StuQuestionLibraryRy stuQuestionLibraryRy);

    List<StuQuestionLibraryRy> getTreeDetailInfoList(StuQuestionLibraryRy stuQuestionLibraryRy);

    List<StuQuestionLibraryRy> getQuestionLibraryListByQuestionPaperId(StuQuestionLibraryRy stuQuestionLibraryRy);

    List<StuQuestionLibraryRy> selectStuQuestionLibraryByIds(List<Long> libraryIds);

    List<StuQuestionLibraryRy> getAppLibraryByPaperId(Long paperId);
}
